package zhihui.mobile.config;


import org.apache.log4j.Level;

/**
 * Created by 张公铭 on 2017/6/19 0019.
 */

public class Config
{
    //程序版本用于控制日志文件级别，0：正式版、1：测试版
    public static final int PULISH_VERSION = 1;
    //当前APP版本，用于更新
    public static final int CURRENT_CODE_VERSION = 1;
    //资源版本号
    public static final int RES_CODE_VERSION = 1;
    //日志记录登记，测试阶段DEBUG
    public static Level log_level = Level.DEBUG;

    //app根目录
    public static String appDoir = "/zhihuiMobile";
    //crash 保存目录
    public static String crashDir =  appDoir + "/crash/";
    //log 保存目录
    public static String logDir = appDoir + "/log/";
    //下载目录
    public static String downDir = appDoir + "/download/";
    //资源文件目录
    public static String conf = appDoir + "/conf/";
    //资源文件名
    public static String confZip = "conf.zip";
    //商品分类目录
    public static String category = conf + "category/";
    //缓存目录
    public static String cache = appDoir + "/cache/image/";

    //保存资源文件是否初始化shared
    public static final String CONF_STATE_NAME = "conf_state_" + RES_CODE_VERSION;
    public static final String CONF_SATE_KEY = "conf_state_key";

    //是否锁屏，false:不锁屏，true:锁屏
    public static boolean isLockView = false;

    //不是wifi时。是否允许使用
    public static boolean isEnable = true;

    //引导页保存名称
    public static final String GUIDANCE_STATE = "guidance_state_" +  + CURRENT_CODE_VERSION;
    //引导页保存key值
    public static final String GUIDANCE_STATE_KEY = "guidance_state_key";

    public static final String SERVERS = "http://39.108.190.27";
//    public static final String SERVERS = "http://192.168.128.245";
//    public static final String SERVERS = "http://192.168.128.245";

    //所有请求协议的地址
    public static final String URL = SERVERS + "/index/zhmm/";
    //文件、图片下载地址
    public static final String FILE_URL = "http://39.108.190.27/html/img/";

    //本地文件名
    public static final String USER_DATA_SAVE = "userInfo";

    //微信APPID
    public static final String WX_APP_ID = "wxa01fb9c7af579150";
    //QQ分享ID
    public static final String QQ_APP_ID = "1106321186";

    //Http返回成功
    public static final String SUCCESS = "success";
    //ttp返回失败
    public static final String ERROR = "error";

    public static String Imei = "";

    public static String deviceId = "";

    public static boolean isInit = false;

    //正式版本日志级别
    public static void initLogLevel()
    {
        log_level = Level.INFO;
    }
}
